const getters = {
  eidtAddressInfo: (state) => state.eidtAddressInfo,
  userInfo: (state) => state.userInfo,
  isVip: (state)=>{
  	let flag = false
  	if(!state.userInfo)return flag
  		// VIP会员逻辑
  		let endTime = new Date(state.userInfo.vip_expiration_time * 1000).getTime()
  		flag = endTime > new Date().getTime()
  	if(flag)return flag
  	// 合伙人逻辑
  	flag = state.userInfo.is_partner === 1
  	console.log('是否为会员==>',flag);
  	return flag
  },
};
export default getters;
